

using UwinEducation.Application.Dtos;
using UwinEducation.Shared.Models;

namespace UwinEducation.Application.Common.Interfaces
{
    /// <summary>
    /// 用户服务接口
    /// </summary>
    public interface IUserService
    {
        /// <summary>
        /// 获取用户分页列表
        /// </summary>
        Task<PagedResult<UserDto>> GetPagedListAsync(UserPageRequest pageRequest);

        /// <summary>
        /// 获取用户详情
        /// </summary>
        Task<UserDto> GetByIdAsync(Guid id);

        /// <summary>
        /// 创建用户
        /// </summary>
        Task<UserDto> CreateAsync(CreateUserDto input);

        /// <summary>
        /// 更新用户
        /// </summary>
        Task<UserDto> UpdateAsync(UpdateUserDto input);

        /// <summary>
        /// 删除用户
        /// </summary>
        Task DeleteAsync(Guid id);

        /// <summary>
        /// 分配角色
        /// </summary>
        Task AssignRolesAsync(AssignRolesDto input);

        /// <summary>
        /// 更新密码
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="newPassword"></param>
        /// <returns></returns>
        Task UpdatePasswordAsync(Guid userId, string newPassword);
    }
} 